package com.simpleplayer.MediaPlayer;

import com.simpleplayer.contentview.ContentView;
import com.simpleplayer.engine.PlayerEngine;

public class MediaParam {
    public String uri;
    public boolean preload;
    public @SimplePlayer.DISPLAYMODE int displaymode;
    public @SimplePlayer.ENGINETYPE int enginetype;
    public @SimplePlayer.VIEWTYPE int viewtype;
    public @SimplePlayer.RENDERTYPE int rendertype;

    public MediaParam(String uri, boolean preload) {
        this(uri, preload, SimplePlayer.INLINE);
    }

    public MediaParam(String uri, boolean preload, @SimplePlayer.DISPLAYMODE int displaymode) {
        this(
            uri, preload, displaymode,
            SimplePlayer.ExoPlayer,
            SimplePlayer.VIEW_TYPE_TextureView,
            SimplePlayer.DIRECT);
    }

    public MediaParam(
            String uri, boolean preload,
            @SimplePlayer.DISPLAYMODE int displaymode,
            @SimplePlayer.ENGINETYPE int enginetype,
            @SimplePlayer.VIEWTYPE int viewtype,
            @SimplePlayer.RENDERTYPE int rendertype) {
        this.uri = uri;
        this.preload = preload;
        this.displaymode = displaymode;
        this.enginetype = enginetype;
        this.viewtype = viewtype;
        this.rendertype = rendertype;
    }
}
